<?php
echo '<div style="width:100%; height:36px"><ul id="nav">';
$menu = $tc->menu(0,2);
while($row = mysql_fetch_array($menu)){
	echo "<li><a href=\"{$row['url']}\" style=\"width:125px; line-height:26px; padding-bottom:8px; text-align:center; background:url(images/menu-bg.png) no-repeat\">{$row['name']}</a>";
	$tc->getSubmenu($row['id'],2);
	echo '</li>';
}
mysql_free_result($menu);
echo "</ul>
</div>";
?>